package my.graduation.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import my.graduation.entity.Clinic;
import my.graduation.entity.Department;

/**
 * @Author: RavenLyn
 * @Date: 2024-12-10
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ClinicVO {


    private Integer id;

    private Integer departmentId;

    private String departmentName;

    private String name;

    public ClinicVO(Clinic clinic, String departmentName) {
        this.id = clinic.getId();
        this.departmentId = clinic.getDepartmentId();
        this.name = clinic.getName();
        this.departmentName = departmentName;
    }
}
